package com.class3;

import web.GetMsg;

public class SetPersonalMsg {
    public static void main(String[] args) throws InterruptedException {
        GetMsg msg=new GetMsg();
        msg.openBrowser("chrome");
        Thread.sleep(3000);
        msg.visitPage("http://www.testingedu.com.cn:8000");
        msg.clickButton("//*[text()='登录']");
        Thread.sleep(3000);
        msg.sendKeys("//input[@name='username']","1361051227@qq.com");
        msg.sendKeys("//input[@name='password']","msg1-12345");
        msg.sendKeys("//input[@name='verify_code']","msge");
        msg.clickButton("//*[@name='sbtbutton']");
        msg.clickButton("//li/*[text()='个人信息']");
        String email="112389@qq.com";
        String xp="//input[@name='nickname']";
       msg.clearMsg(xp);
       msg.sendKeys(xp,email);
       msg.clickButton("//input[@class='save']");

    }
}
